﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace aoprinter.Model
{
    [Serializable]
    public class ModText : ModBlock
    {
        public const string Text_Flag = "|";

        public ModText()
        {
            TextType = GetTextType();
            TextStyle = new ModTextStyle();
            LstText = new List<string>();
            LstLocation = new List<PointF>();
        }
        public string Text
        {
            set;
            get;
        }
        public List<string> LstText
        {
            set;
            get;
        }
        public List<PointF> LstLocation
        {
            set;
            get;
        }
        public EnmTextType TextType
        {
            get;
            private set;
        }
        public ModTextStyle TextStyle
        {
            set;
            get;
        }
        protected virtual EnmTextType GetTextType()
        {
            return EnmTextType.Cons;
        }
        protected override EnmBlockType GetBlockType()
        {
            return EnmBlockType.Text;
        }
    }
}